#include "poolTime.h"

poolTime::poolTime()
{
}

poolTime::~poolTime()
{
}

void poolTime::addToMap(void *data, unsigned long long timeout)
{
  this->timer->setToMsTimeOfDay();
  this->mapPool[this->timer->getMs() + timeout] = data;
}

void poolTime::autoCall()
{
  this->timer->setToMsTimeOfDay();
  std::map<unsigned long long, void *>::iterator it = this->mapPool.begin();
  while (it != this->mapPool.end())
    {
      std::cout << it->first << std::endl;
      ++it;
    }
}
